//
//  GYOrderSelectedCollectionViewCell.m
//  GoodLuck
//
//  Created by apple on 2018/4/18.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYOrderSelectedCollectionViewCell.h"

@interface GYOrderSelectedCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *numLable;

@end
@implementation GYOrderSelectedCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.numLable.layer.cornerRadius = self.numLable.height/2;
    self.numLable.layer.borderWidth = 1;
    self.numLable.layer.borderColor = [UIColor redColor].CGColor;
}

- (void)setNum:(int)num {
    _num = num;
    
    if (num == 0) {
        self.numLable.text = @"";
    }else {
        self.numLable.text = [NSString stringWithFormat:@"%d",num];
    }
}
@end
